using System;
using System.Text;
using TccAg.VO;
using TccAg.DA;
using System.Data;
using System.Collections;
using System.Collections.Generic;


namespace TccAg.BR
{
    public class GradecurricularBR
    {
        private GradecurricularDA gradecurricularDA = new GradecurricularDA();

        //INSERIR 
        public int inserir(GradecurricularVO gradecurricular)
        {
            try
            {
                return gradecurricularDA.inserir(gradecurricular);
            }
            catch (Exception ex)
            {
               throw ex;
            }
        }

        //ATUALIZAR 
        public int atualizar(GradecurricularVO gradecurricular)
        {
            try
            {
                return gradecurricularDA.atualizar(gradecurricular);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        //EXCLUIR 
        public int excluir(GradecurricularVO gradecurricular)
        {
            try
            {
                return gradecurricularDA.excluir(gradecurricular);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        //LOAD ALL 
        public List<GradecurricularVO> loadAll()
        {
            try
            {
                return gradecurricularDA.loadAll();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        //LOAD BY PK
        public GradecurricularVO loadByPk(GradecurricularVO gradecurricular)
        {
            try
            {
                return gradecurricularDA.loadByPk(gradecurricular);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        //LOAD BY FK
        public List<GradecurricularVO> loadByFk(GradecurricularVO gradecurricular)
        {
            try
            {
                return gradecurricularDA.loadByFk(gradecurricular);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        //DATATABLE LOAD ALL 
        public DataTable dataTableLoadAll()
        {
            try
            {
                return gradecurricularDA.dataTableLoadAll();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

    }
}
